projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
134e159
)
wayland: sanity check events at the source
author
Matthias Clasen
<mclasen@redhat.com>
Wed, 1 May 2019 20:39:44 +0000
(20:39 +0000)
committer
Matthias Clasen
<mclasen@redhat.com>
Wed, 1 May 2019 20:51:43 +0000
(20:51 +0000)
Sanity check events before we throw them into
the event queue, as this makes it much easier
to track down the culprit.
gdk/wayland/gdkeventsource.c
patch
|
blob
|
history
diff --git
a/gdk/wayland/gdkeventsource.c
b/gdk/wayland/gdkeventsource.c
index 69efb783f3ed01ea433053f5b3f8a6fb51240218..86c3f86484181461e848e095c52c1f29363841d4 100644
(file)
--- a/
gdk/wayland/gdkeventsource.c
+++ b/
gdk/wayland/gdkeventsource.c
@@
-151,6
+151,9
@@
_gdk_wayland_display_deliver_event (GdkDisplay *display,
{
GList *node;
+ if (!check_event_sanity (event))
+ g_warning ("Snap! delivering insane events\n");
+
node = _gdk_event_queue_append (display, event);
_gdk_windowing_got_event (display, node, event,
_gdk_display_get_next_serial (display));